﻿<h3>
    <a href="{:U(GROUP_NAME.'/User/index')}" class="actionBtn">返回列表</a>
 	修改银行卡
</h3>
    <link rel="stylesheet" href="__PUBLIC__/admin/css/msgbox.css" />

    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
        <tr>
            <td width="100" align="right">银行</td>
            <td>
                <span class="phone"><input type="" name="bankname" id="bankname" value="{$userinfo.bankname}" /></span>
            </td>
        </tr>
       <tr>
            <td width="100" align="right">卡号</td>
            <td>
                <span class="phone"><input type="" name="bankcard" id="bankcard" value="{$userinfo.bankcard}" /></span>
            </td>
        </tr>
        
      
    </table>
   
<table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
                <tr>
                    <td width="131"></td>
                    <td>
                    <input type="hidden" name="id" id="id" value="{$userinfo.id}" />
                        <input class="btn" id="send_btn" type="submit" value="提交" />
                    </td>
                </tr>
            </table>
<script>
$("#send_btn").click(function(){
	var id=$("#id").val();
	var bankname=$("#bankname").val();
	var bankcard=$("#bankcard").val();
	var url="__URL__/act_save_bank";
	var data={
		id:id,
		bankname:bankname,
		bankcard:bankcard
	}
	$.post(url,data,function(res){
		if(res==1){
			layer.msg("保存成功!");
			setTimeout(function(){
    						window.location.reload();
    					},2000);
			
		}else{
			layer.msg("保存失败!");
			return false;
		}
	})
	
});
</script>